package io.mft.api.domain;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import io.mft.commons.util.Unique;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class OutputCache implements Unique,Serializable{
	 
	        /**
	 * @说明：TODO
	 * @字段名称 serialVersionUID
	        */  
	    
	private static final long serialVersionUID = 7660519354898940450L;
	private boolean on = false;
	@JsonInclude(Include.NON_EMPTY) 
	private String expire = "";
	@JsonInclude(Include.NON_EMPTY) 
	private String datasourceId="";
	@Override
	public String uniqueId() {
		return on+"-"+expire;
	}
}
